package xy.donate.android.entity;

import androidx.annotation.NonNull;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;

import cn.bmob.v3.BmobObject;

@Entity
public class AddressEntity extends BmobObject implements Serializable {

    @PrimaryKey
    @NonNull
    private String AddressID;
    private String UserID;
    private String realName;
    private String phoneNum;
    private String cityStr;
    private String detailAddress;
    private String floorNum;
    private int sex;

    public AddressEntity() {
        AddressID = "";
        setTableName("Address");
    }

    @Ignore
    public AddressEntity(@NonNull String addressID,@NonNull String userID, String realName, String phoneNum, String cityStr, String detailAddress,int sex) {
        UserID = userID;
        AddressID = addressID;
        this.realName = realName;
        this.phoneNum = phoneNum;
        this.cityStr = cityStr;
        this.detailAddress = detailAddress;
        this.sex = sex;
    }

    @NonNull
    public String getAddressID() {
        return AddressID;
    }

    public void setAddressID(@NonNull String addressID) {
        AddressID = addressID;
    }

    public String getFloorNum() {
        return floorNum;
    }

    public void setFloorNum(String floorNum) {
        this.floorNum = floorNum;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getCityStr() {
        return cityStr;
    }

    public void setCityStr(String cityStr) {
        this.cityStr = cityStr;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    @NonNull
    public String getUserID() {
        return UserID;
    }

    public void setUserID(@NonNull String userID) {
        UserID = userID;
    }
}
